Skip to content

fix: remove unsafe exec() in edma.c#14003

Open
orbisai0security wants to merge 1 commit into
coolsnowwolf:masterfrom
orbisai0security:fix-edma-mac-addr-memcpy-bounds-v007
Open

fix: remove unsafe exec() in edma.c#14003
orbisai0security wants to merge 1 commit into
coolsnowwolf:masterfrom
orbisai0security:fix-edma-mac-addr-memcpy-bounds-v007

Conversation

@orbisai0security
Copy link
Copy Markdown

Summary

Fix critical severity security issue in target/linux/ipq40xx/files/drivers/net/ethernet/qualcomm/essedma/edma.c.

Vulnerability

Field Value
ID V-007
Severity CRITICAL
Scanner multi_agent_ai
Rule V-007
File target/linux/ipq40xx/files/drivers/net/ethernet/qualcomm/essedma/edma.c:1976

Description: The EDMA Ethernet driver copies a user-supplied MAC address into kernel memory using memcpy with a copy length (netdev->addr_len) that is not validated against the actual size of the source buffer (addr->sa_data, fixed at 14 bytes in struct sockaddr). An attacker who manipulates addr_len to a value larger than ETH_ALEN (6) causes the memcpy to read beyond the sa_data boundary and write attacker-controlled data into adjacent kernel memory, potentially overwriting function pointers and achieving full kernel code execution.

Changes

  • target/linux/ipq40xx/files/drivers/net/ethernet/qualcomm/essedma/edma.c

Verification

  • Build passes
  • Scanner re-scan confirms fix
  • LLM code review passed

Automated security fix by OrbisAI Security

Automated security fix generated by Orbis Security AI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant